package com.iter.devbox.pattern.bridge;

/**冷饮抽象类*/
public abstract class Drink {
	/**持有大小（大杯或小杯）的引用*/
	protected Size size;
	/**持有口感（加冰或不加冰）的引用*/
	protected Taste taste;
	
	public Drink (Size size, Taste taste) {
		this.size = size;
		this.taste = taste;
	}
	
	/**喝饮料*/
	public void drink() {
		System.out.println("喝饮料。。。");
		size.size();
		taste.taste();
	}
}
